/*
* @Author: steven.wang
* @Date:   2019-03-23 04:26:28
* @Last Modified by:   steven.wang
* @Last Modified time: 2019-05-13 14:40:16
*/
import request from '@/utils/request'
/**
 * 查询职位列表
 * @author steven.wang
 * @DateTime 2019-03-23T04:26:46+0800
 */
export const fetchList = query => {
    return request({
        url: '/crawler/job/list',
        method: 'get',
        params: query
    })
}
/**
 * 添加职位
 * @author steven.wang
 * @DateTime 2019-03-23T04:26:46+0800
 */
export const addJob = data => {
    return request({
        url: '/crawler/job/add',
        method: 'post',
        data
    })
}
/**
 * 更新职位
 * @author steven.wang
 * @DateTime 2019-03-23T04:26:46+0800
 */
export const updateJob = data => {
    return request({
        url: '/crawler/job/update',
        method: 'put',
        data
    })
}
/**
 * 删除职位
 * @author steven.wang
 * @DateTime 2019-03-23T04:26:46+0800
 */
export const deleteJob = data => {
    return request({
        url: '/crawler/job/delete',
        method: 'delete',
        data
    })
}